﻿using PluginAPI.Core;
using PluginAPI.Core.Attributes;
using PluginAPI.Enums;
using PluginAPI.Events;
using RoundTicks.Config;
using RoundTicks.Event;
using System.ComponentModel;


namespace RoundTicks
{
    public class RoundTickLoad
    {
        public static RoundTickLoad Singleton { get; set; }


        [PluginConfig] public ConfigRoundTicks Config;

        [Description("团队信息")] public TeamRoles TeamRoles { get; set; }
        [Description("回合等待")] public bool IsRoundWaiting;




        //[PluginEntryPoint("回合定制", "v0.0.1", "定制回合", "River")]
        //[PluginPriority(LoadPriority.Medium)]
        //public void Load()
        //{
        //    if (!this.Config.IsEnabled) return;

        //    Singleton = this;

        //    TeamRoles = new TeamRoles();

        //    Log.Info($"NWPluginAPI| 回合定制 | 加载");

        //    EventManager.RegisterEvents(this);
        //    EventManager.RegisterEvents<RoundTickEvent>(this.Config.IsEnabled);
        //}

        //[PluginUnload]
        //public void UnLoad()
        //{
        //    Singleton = null;

        //    EventManager.UnregisterEvents(this);
        //    EventManager.UnregisterEvents<RoundTickEvent>(this.Config.IsEnabled);
        //}
    }
}
